{{extend 'layout.html'}}

<h2>Select blog</h2>
{{if request.args:}}<h3>{{=T('For %s #%s' % (request.args(0)[2:],request.args(1)))}}</h3>{{pass}}

{{=A(T('create new blog'),_href=URL('blog_create'))}}
<br/>

{{=A(T('search blog'),_href=URL('blog_search'))}}
<br/>

{{if rows:}}
  {{headers=dict((str(k),k.label) for k in db.t_blog)}}
  {{=SQLTABLE(rows,headers=headers)}}
{{else:}}
  {{=TAG.blockquote(T('No Data'))}}
{{pass}}
